package com.chima.dao;

import java.util.List;

import org.hibernate.Session;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.chima.domain.Core;

public class CoreDao extends HibernateDaoSupport {
	@SuppressWarnings("unchecked")
	public List<Core>findCores(int level, int perproty) {
		Session session=this.getSession();
		 List<Core> c=session.createQuery(" from Core where  level=? and property=?").setParameter(0, level).setParameter(1, perproty).list();
		 super.releaseSession(session);
		 return c;
	}

}
